/**
 * @Date 2021-04-25 09:59
 * @Describe
 */
const template = require("art-template");
template.defaults.imports.toPercent = function (val) {
    let result = val || 0;
    if (result == 0) {
        return '0%'
    }
    else {
        return result.toFixed(2) + '%';
    }
};
